export function  swiperFormat (dataSets) {
  const { source, type, dimensions } = dataSets;
  let data =[];
  if (type === 'STATIC') {
    data = source;
  } else {
    source.length && source.map(item=> {
      data.push({
        title: item[dimensions.yAxisTitle] || '',
        url: item[dimensions.yAxis] || '',
      })
    })
  }
  return {
    seriesData: data
  };
};
